<div id="body-wrapper"> <!-- Wrapper for the radial gradient background -->
		<?php getAdminMenu();?>
		
		<div id="main-content"> <!-- Main Content Section with everything -->
			
			<div class="content-box"><!-- Start Content Box -->
				
				<div class="content-box-header">
					
					<h3>正式订单</h3>
					
					<div class="clear"></div>
					
				</div> <!-- End .content-box-header -->
				
				<div class="content-box-content">
					
					<div class="tab-content default-tab" id="tab1">
						<table>
							<thead>
								<tr>
								   <th><input class="check-all" type="checkbox" /></th>
								   <th>域名</th>
								   <th>公司名称</th>
								   <th>代理商昵称</th>
								   <th>订单状态</th>
								   <th>联系方式</th>
								   <th>用户需求数</th>
								   <th>预计签约时间</th>
								   <th>最后更新时间</th>
								   <th>操作</th>
								</tr>
							</thead>
							<tfoot>
								<tr>
									<td colspan="10">
										<div class="bulk-actions align-left">
											<select name="dropdown">
												<option value="option1">Choose an action...</option>
												<option value="option2">Edit</option>
												<option value="option3">Delete</option>
											</select>
											<a class="button" href="#">Apply to selected</a>
										</div>
										<?php echo $pages;?> <!-- End .pagination -->
										<div class="clear"></div>
									</td>
								</tr>
							</tfoot>
						 
							<tbody>
							<?php if ($lists && $lists->num_rows() > 0):?>
							<?php foreach ($lists->result() as $list):?>
								<tr>
									<td><input type="checkbox" /></td>
									<td><?php echo $list->domain;?></td>
									<td><?php echo $list->customer_name;?></td>
									<td><?php echo getAgentNickNameById($list->agent_id);?></td>
									<td><?php echo getStatus($list->flag);?></td>
									<td>联系人：<?php echo $list->primary_contact_name,"<br />";?>电话：<?php echo $list->primary_contact_telphone,"<br />";?>
									<?php if ($list->primary_contact_qq){echo "QQ:",$list->primary_contact_qq,"<br />";}if ($list->primary_contact_msn){echo "MSN:",$list->primary_contact_msn,"<br />";}if ($list->primary_contact_email){echo "EMAIL:",$list->primary_contact_email,"<br />";}?></td>
									<td><?php echo $list->info_user_nums;?></td>
									<td><?php echo $list->info_sign_time;?></td>
									<td><?php echo $list->create_time;?></td>
									<td>
										<!-- Icons -->
										 <a target="_blank" href="<?php echo site_url('/admin/showCustomerDetail/'.$list->id);?>" title="Detail" >详情</a>
										 <a href="<?php echo site_url('/admin/delete/'.$list->id);?>" title="Delete" onclick="return confirm('确定删除？')"><img src="/img/icons/cross.png" alt="Delete" /></a> 
										 <?php if($list->flag <1):?>
										 <a href="<?php echo site_url('/admin/edit/'.$list->id);?>" title="Edit"><img src="/img/icons/pencil.png" alt="Edit" /></a>
										 <?php if($list->flag==0){?>
										 <a href="<?php echo site_url('/admin/edit_unverified/'.$list->id);?>" title="转为审核未通过的订单"><img src="/img/icons/unverified.png"  alt="转为审核未通过的订单" /></a>
										 <a href="<?php echo site_url('/admin/edit_verify/'.$list->id);?>" title="转为审核通过的订单"><img src="/img/icons/verify.png" alt="转为审核通过的订单" /></a>
										 <?php }?>
										 <?php endif;?>
										 <?php if($list->flag==1){?>
										 <a href="<?php echo site_url('/admin/edit_verified/'.$list->id);?>" title="转正式订单"><img src="/img/icons/verified.png" alt="转正式订单" /></a>
										 <?php }?>
									</td>
								</tr>
							<?php endforeach;?>
							<?php endif;?>	
							</tbody>
						</table>
						
					</div> <!-- End #tab1 -->
				</div> <!-- End .content-box-content -->
				
			</div> <!-- End .content-box -->
			
			<div id="footer">
				<small> <!-- Remove this notice or replace it with whatever you want -->
						&#169; Powered by <a href="#">Leslee</a> | <a href="#">Top</a>
				</small>
			</div><!-- End #footer -->
		</div> <!-- End #main-content -->
	</div>